package com.molyfun.parents.zhibo.im;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:11/28/16.
 * 现有的事件:
 eventtype:gallery    opertype:open       //素材打开
 eventtype:gallery    opertype:close      //素材关闭
 eventtype:room       opertype:enter      //直播用户进入
 eventtype:room       opertype:leave      //直播用户离开
 eventtype:room       opertype:finish       //直播结束完成
 */
public class ZhiboAddImMsgRequest<T> {

    //直播id
    private String id;
    //直播事件类型
    private String eventtype;//事件类型  room:直播房间   gallery:素材  msg:直播消息 meeting:直播连麦
    //直播操作类型
    private String opertype;//事件操作类型  open:打开   close:关闭  enter:进入 leave:离开  finish:结束完成  apply:申请  start:开始  stop:停止

    private T data;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEventtype() {
        return eventtype;
    }

    public void setEventtype(String eventtype) {
        this.eventtype = eventtype;
    }

    public String getOpertype() {
        return opertype;
    }

    public void setOpertype(String opertype) {
        this.opertype = opertype;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public interface ZhiboEventType{
        String EventTypeRoom = "room";
        String EventTypeGallery = "gallery";
        String EventTypeMsg = "msg";
        String EventTypeRtc = "meeting";
    }

    public interface ZhiboOperType{
        String OperTypeOpen = "open";
        String OperTypeClose = "close";
        String OperTypeEnter = "enter";
        String OperTypeLeave = "leave";
        String OperTypeFinish = "finish";
    }

    public static class ZhiboImageBean{

        /**
         * url : http://media.molyfun.com/helloimg/gallery/20170509/20170509161726PBkpvWn6.jpg
         * name : 上课时嘟嘟1
         * gtype : 1
         * logo : null
         */

        private String id;
        private String url;
        private String name;
        private String gtype;
        private String logo;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getGtype() {
            return gtype;
        }

        public void setGtype(String gtype) {
            this.gtype = gtype;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
    }

}
